﻿namespace P3_StudentInfo;

public class Student
{
    public string Name { get; set; }
    public int Age { get; set; }
    public double Score { get; set; }

    //构造函数 
    public Student(string name, int age, double score)
    {
        Name = name;
        Age = age;
        Score = score;
    }
    
    //重写 ToString
    public override string ToString()
    {
        return $"Name: {Name}, Age: {Age}, Score: {Score}";
    }
}